import Request from '@/utils/request-util';

/**
 * 配置api
 *
 * @author cancan
 * @date 2025/06/28 19:48
 */
export class DeviceAiEdgeSprayConfigApi {
  static findPage(params) {
    return Request.getAndLoadData('/deviceAiEdgeSprayConfig/page', params);
  }
  /**
   * 新增
   *
   * @author cancan
   * @date 2025/06/28 19:48
   */
  static add(params) {
    return Request.post('/deviceAiEdgeSprayConfig/add', params);
  }

  static addRemote(params) {
    return Request.post('/deviceAiEdgeSprayConfig/addRemote', params);
  }

  /**
   * 修改
   *
   * @author cancan
   * @date 2025/06/28 19:48
   */
  static edit(params) {
    return Request.post('/deviceAiEdgeSprayConfig/edit', params);
  }

  static editRemote(params) {
    return Request.post('/deviceAiEdgeSprayConfig/editRemote', params);
  }

  static copyEdit(params) {
    return Request.post('/deviceAiEdgeSprayConfig/copyEdit', params);
  }

  /**
   * 删除
   *
   * @author cancan
   * @date 2025/06/28 19:48
   */
  static delete(params) {
    return Request.post('/deviceAiEdgeSprayConfig/delete', params);
  }

  /**
   * 详情
   *
   * @author cancan
   * @date 2025/06/28 19:48
   */
  static detail(params) {
    return Request.getAndLoadData('/deviceAiEdgeSprayConfig/detail', params);
  }

  static list(params) {
    return Request.get('/deviceAiEdgeSprayConfig/list', params);
  }
  static huanBind(params) {
    return Request.post('/deviceAiEdgeSprayConfig/huanBind', params);
  }

}
